/* 全局样式 */
:root {
    --primary-color: #6f4e37;
    --secondary-color: #8b7355;
    --background-color: #f8f5f2;
    --text-color: #4a4a4a;
    --border-color: #e0d5c7;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

/* 头部样式 */
.header-section {
    background: linear-gradient(135deg, #f8f5f2 0%, #e8ddd4 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-section h1 {
    color: var(--primary-color) !important;
    font-weight: 300;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* 帖子样式 */
.post-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #888;
}

.post-time {
    color: var(--secondary-color);
}

/* 点赞按钮 */
.like-button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.like-button:hover {
    background-color: #ffe6e6;
    transform: scale(1.1);
}

.like-button.liked {
    color: #dc3545;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 表单样式 */
textarea.form-control {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    resize: vertical;
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 78, 55, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* 加载动画 */
.spinner-border {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .post-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}
